package com.icez.designmode

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.icez.flowlayout.FlowLayout

class MainActivity : AppCompatActivity() {
    private var mTestFlowLayoutAdaptre:TestFlowLayoutAdaptre ?= null
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        val mflowLayout = findViewById<FlowLayout>(R.id.flowLayout)
        val list = ArrayList<String>()
        for(i in 0 until 10){
            list.add("数据$i")
        }
        mTestFlowLayoutAdaptre = TestFlowLayoutAdaptre(list)
        mflowLayout.setAdapter(mTestFlowLayoutAdaptre)
    }
}